package fashionshop.gui.common.component;

import javax.swing.JPanel;

import fashionshop.gui.common.event.CommandListener;

@SuppressWarnings("serial")
public abstract class DefaultCommandPanel extends JPanel implements CommandListener {

	@Override
	public void addPerformed() {
		throw new UnsupportedOperationException();
	}

	@Override
	public void editPerformed() {
		throw new UnsupportedOperationException();
	}

	@Override
	public void deletePerformed() {
		throw new UnsupportedOperationException();
	}

	@Override
	public abstract void refreshPerformed();
	
	public abstract CommandToolBar.ToolBarType getCommandType();
	
	public CommandListener getCommandListener(){
		return this;
	}

}
